<!--
<?php
print <<<EOT
-->
<SCRIPT LANGUAGE="JavaScript">
<!--
function upfile(url,name,size,p){
	form1.img.value=url;
}
//-->
</SCRIPT>
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="tablewidth">
  <form id="form1" name="form8" method="post" action="index.php?lfj=$lfj&action=$job&inc=$inc&lid=$rsdb[lid]&ch=$ch&chtype=$chtype&tag=$tag&type=code&ch_fid=$ch_fid&ch_pagetype=$ch_pagetype&ch_module=$ch_module&ch_ifjs=$ch_ifjs&mystyle=$mystyle&">
    <tr class="head" align="center"> 
      <td colspan="2"> 
        <input type="button" name="Submit22" value="更换选择显示其他设置" onClick="window.location=('index.php?lfj=$lfj&inc=&job=list&id=$id&tag=$tag&ch=$ch&chtype=$chtype&ch_fid=$ch_fid&ch_pagetype=$ch_pagetype&ch_module=$ch_module&ch_ifjs=$ch_ifjs&mystyle=$mystyle&')">
        <script src=template/default/label/js.js></script>
        <input type="button" name="Submit222" value="查看效果" onClick="window.open('$viewurl')">
        <input type="button" name="Submit2222" value="返回频道/专题" onClick="window.location=('$viewurl&jobs=show')">
      </td>
    </tr>
    <tr> 
      <td bgcolor="#FFFFFF" width="18%">内容 </td>
      <td bgcolor="#FFFFFF" width="82%"> 
        <textarea name="code" id="tplpart_1" style="width:600px;height:320px;">$rsdb[code]</textarea>
        <br>
        <input type="BUTTON" name="btn" value="可视化编辑" onClick="eWebEditorPopUp('form1', 'tplpart_1', 800, 600)">
        <script language=JavaScript>
function eWebEditorPopUp(form, field, width, height) {
	window.open("../ewebeditor/v4.60/popup.htm?style=popup&form="+form+"&field="+field, "", "width="+width+",height="+height+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no");
}
</script>
      </td>
    </tr>
    <tr style="display:none;"> 
      <td bgcolor="#FFFFFF" width="18%"><a href="javascript:tool()">上传图片/FLASH</a>(工具箱) 
      </td>
      <td bgcolor="#FFFFFF" width="82%">&nbsp; 
        <div id=toolid style='display:none '> <br />
          <input type="text" name="img" size="50" id="img">
          <a href='javascript:' onClick='window.open("upfile.php?lfj=$lfj&ch_module=$ch_module&dir=label","","width=350,height=50,top=200,left=400")'>点击上传图片</a> 
          <a href="javascript:" class="style30"  onClick="javascript:cutimg();">[剪裁图片]</a> 
          宽 
          <input type="text" name="cw" size="4" value="120" id=cw>
          高 
          <input type="text" name="ch" size="4" value="120" id=ch>
          <p></p>
          <p> 
            <input type="text" name="flash" size="50" id=flash>
            <a href='javascript:' onClick='window.open("upfile.php?lfj=$lfj&ch_module=$ch_module&dir=label&postid=flash&","","width=350,height=50,top=200,left=400")'>点击上传FLASH</a> 
            <br>
        </div>
      </td>
    </tr>
    <tr> 
      <td bgcolor="#FFFFFF">更新内容时上方遮蔽层设置: </td>
      <td bgcolor="#FFFFFF">层宽 
        <input name="div_w" type="text" id="div_w" value="$div_w" size="4" />
        层高 
        <input name="div_h" type="text" id="div_h" value="$div_h" size="4" />
        层的颜色 
        <input name="div_bgcolor" type="text" id="div_bgcolor" value="$div_bgcolor" size="12"  onclick="foreColor_font(this);" />
        <SCRIPT LANGUAGE="JavaScript">
<!--
  function foreColor_font(obj)
{
  
  var arr = showModalDialog('images/selcolor.htm', '', 'dialogWidth:18.5em; dialogHeight:17.5em; status:0');
  if (arr != null)  obj.value=arr;
  else  obj.focus();
  obj.style.background=arr;
}
//-->
</SCRIPT>
      </td>
    </tr>
    <tr> 
      <td bgcolor="#FFFFFF">是否隐藏,暂时不显示:</td>
      <td bgcolor="#FFFFFF"> 
        <input type="radio" name="hide" value="0"  $hide_0>
        显示
<input type="radio" name="hide" value="1" $hide_1 />
        隐藏</td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#FFFFFF" colspan="2"><label> 
        <script language="JavaScript">
<!--
function chooseAD(type){
	if(type=='1'){
		document.getElementById('ifad1').checked=true;
		document.getElementById('ifad0').checked=false;
		document.getElementById('isadconfig').style.display='';
	}else{
		document.getElementById('ifad1').checked=false;
		document.getElementById('ifad0').checked=true;
		document.getElementById('isadconfig').style.display='none';
	}
}
//chooseAD('$ifad');
//-->
</script>
        <input type="submit" name="Submit" value="提 交" onClick=sub() />
        </label> 
        <script language="javascript">
function cutimg() 
{
	var img=document.form8.img.value
	var cw=document.form8.cw.value
	var ch=document.form8.ch.value
	if(cw==''){
		document.form1.cw.focus();
		alert("请设置好图片宽度");return false;
	}
	if(ch==''){
		document.form1.cw.focus();
		alert("请设置好图片高度");return false;
	}
if(img!=''){
	window.open("cutimg.php?lfj=$lfj&ch_module=$ch_module&job=cutimg&width="+cw+"&height="+ch+"&srcimg="+img,'',"width=480,height=430")
	
}else{
	document.form1.img.focus();
	alert('图片地址不存在');
}
}
function tool(){
	if(toolid.style.display==''){
	toolid.style.display='none'
	}else{
	toolid.style.display=''
	}
}
function setcodetxt(){
	eWebEditor1.setMode('CODE');
}
</script>
      </td>
    </tr>
  </form>
</table>
<!--
EOT;
?>
-->
